﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: FilesEntity.cs
// 修改时间：2020-9-8 10:40:03
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Files 的实体类.
	/// </summary>
	[Table("Files")]
	public partial class FilesEntity
	{
		#region Properties
		private int? _id = 0;
		/// <summary>
		/// 文件ID(主键)
		/// </summary>
		[Column("ID",TypeName="int")]
		[Key]
		public int? ID
		{
			get {return _id;}
			set {_id = value;}
		}
		
		private System.String _name = string.Empty;
		/// <summary>
		/// 文件名
		/// </summary>
		[Column("Name",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Name
		{
			get {return _name;}
			set {_name = value;}
		}
		
		private int? _size = 0;
		/// <summary>
		/// 文件大小
		/// </summary>
		[Column("Size",TypeName="int")]
		public int? Size
		{
			get {return _size;}
			set {_size = value;}
		}
		
		private System.String _path = string.Empty;
		/// <summary>
		/// 文件存放路径
		/// </summary>
		[Column("Path",TypeName="nvarchar(1000)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Path
		{
			get {return _path;}
			set {_path = value;}
		}
		
		private System.String _userName = string.Empty;
		/// <summary>
		/// 用户名称
		/// </summary>
		[Column("UserName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserName
		{
			get {return _userName;}
			set {_userName = value;}
		}
		
		private System.String _fileType = string.Empty;
		/// <summary>
		/// 文件类型
		/// </summary>
		[Column("FileType",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String FileType
		{
			get {return _fileType;}
			set {_fileType = value;}
		}
		
		#endregion
	}
}
